/*
 * FileLoader.h
 *
 *  Created on: 11/10/2011
 *      Author: gisedaye
 */

#ifndef FILELOADER_H_
#define FILELOADER_H_

#include <string.h>
#include <fstream>
#include <stdio.h>
#include "../Bucket.h"

using namespace std;

class FileLoader {

public:
	static bool fileExists(string filename);
	static bool createFile(string filename);
	static long getHashTableSize(string filename);
	static string readFromFile(string filename, int start, int size);
	static string getBucketFromFile(string filename,int bucketNumber);
	static string getBucketNumberFromFile(string filename,int dispersion);
};


#endif /* FILELOADER_H_ */
